/*
 * Copyright 2009, Qys Creations 
 * 
 *  This file is part of Chameleon DB.
 *
 *  Chameleon DB is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Chameleon DB is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Chameleon DB.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * */


public class db_column {
	public String sName = "";
	public long lType = 0;
	public long lLength = 0;
	public boolean bNotNull = false;
	public boolean bPrimaryKey = false;
	public boolean bIdentity = false;
	public long lIndentitySeed = 1;
	public long lIdentityIncrement = 1;
	
	db_column (String sColName, int iColType, int iColTypeLength) {
		sName = sColName;
		lType = iColType;
		lLength = iColTypeLength;
	}
	
	db_column (String sColName, int iColType, int iColTypeLength, boolean bIsNotNull, boolean bIsPrimaryKey, boolean bIsIdentity, long lIndentitySeedVal, long lIdentityIncrementVal) {
		sName = sColName;
		lType = iColType;
		lLength = iColTypeLength;
		bNotNull = bIsNotNull;
		bPrimaryKey = bIsPrimaryKey;
		bIdentity = bIsIdentity;
		lIndentitySeed = lIndentitySeedVal;
		lIdentityIncrement = lIdentityIncrementVal;
	}
}
